package ${sourceBasePackage}.mapper<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}Dto;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}SearchDto;
import ${sourceBasePackage}.entity<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}Entity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ${description}Mapper
 * @author： ${author}
 */
@Mapper
public interface ${entityName}Mapper extends BaseMapper<${entityName}Entity> {

    /**
     * 条件查询
     * @param ${entityName?uncap_first}SearchDto
     * @return
     */
	List<${entityName}Dto> getList(${entityName}SearchDto ${entityName?uncap_first}SearchDto);

    /**
     * 通过id查询
     * @param ${pkPropertyName}
     * @return
     */
	${entityName}Dto getById(${pkPropertyType} ${pkPropertyName});

}
